#!/usr/bin/env bash
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2016-2023, Intel Corporation
#
#
# libpmempool_backup/TEST2 -- test empty backup poolset
#

. ../unittest/unittest.sh

require_test_type medium

require_fs_type pmem non-pmem

setup

. ./common.sh

backup_cleanup

# prepare poolset files
create_poolset_variation 1
create_poolset_variation 5 $BACKUP

# create source poolset parts
expect_normal_exit $PMEMPOOL$EXESUFFIX create obj \
	"--layout test_layout" $POOLSET

backup_and_compare $POOLSET

mv $OUT_TEMP $OUT

check

pass
